package org.okcjug.december.deque;


import java.util.concurrent.LinkedBlockingDeque;

import junit.framework.TestCase;

import org.junit.Before;

public class LinkedBlockingDequeTest extends TestCase
{
	private LinkedBlockingDeque<String> lbd;

	@Before
	public void setUp() throws Exception 
	{
		lbd = new LinkedBlockingDeque<String>();
	}

	public void _test_lbd_peek_offer_pop()
	{
		lbd.add("A");
		lbd.add("C");
		lbd.add("B");
		lbd.add("F");
		lbd.add("D");
		lbd.add("E");
		
		System.err.println(lbd);
		
		System.err.println("peek: " + lbd.peek());
		System.err.println("peek: " + lbd.peekFirst());
		System.err.println("peek: " + lbd.peekLast());
		System.err.println("first: " + lbd.getFirst());
		System.err.println("last : " + lbd.getLast());
		
		System.err.println(lbd);
		
		System.err.println("pop: " + lbd.pop());
		
		System.err.println(lbd);
		
		System.err.println(lbd.offerFirst("A"));
		
		System.err.println(lbd);
	}
	
	public void test_lbd_stuff()
	{
		
		
		
		
		
		
	}
	
	
	
	
}
